package com.zh.mp.demo.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author jobob
 * @since 2021-03-20
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单code
     */
    private String orderCode;

    /**
     * 商品code
     */
    private String goodsCode;

    /**
     * 订单数量
     */
    private Integer orderNumber;

    /**
     * 商品单价
     */
    private BigDecimal goodsPrice;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;

    /**
     * 会员code
     */
    private String memberCode;

    /**
     * 订单状态 0已创建 1已支付
     */
    private Integer orderStatus;

    /**
     * 订单创建时间
     */
    private Date orderTime;


}
